package com.stedu.mall.orderservice.mapper;

import com.stedu.mall.common.bean.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    //添加
    int insert(OrderDetail orderDetail);
    //根据订单id查询详情
    List<OrderDetail> selectByOrderId(String orderId);
    //查询订单详情中每种商品前五的数量
    List<OrderDetail> selectFive();
}
